import request from '@/utils/request'

// 查询宝箱信息列表
export function listBoxes(query) {
  return request({
    url: '/system/boxes/list',
    method: 'get',
    params: query
  })
}

// 查询宝箱信息详细
export function getBoxes(boxId) {
  return request({
    url: '/system/boxes/' + boxId,
    method: 'get'
  })
}

// 新增宝箱信息
export function addBoxes(data) {
  return request({
    url: '/system/boxes',
    method: 'post',
    data: data
  })
}

// 修改宝箱信息
export function updateBoxes(data) {
  return request({
    url: '/system/boxes',
    method: 'put',
    data: data
  })
}

// 删除宝箱信息
export function delBoxes(boxId) {
  return request({
    url: '/system/boxes/' + boxId,
    method: 'delete'
  })
}
